package com.java.lang;

import java.lang.reflect.Field;

public class ClassDemo {
	public int age;
	public String name;
	char sex;

	public static void main(String[] args) {
		try {
			Class<?> aa = Class.forName("com.java.lang.ClassDemo");
			Field[] f = aa.getFields();
			for (Field field : f) {
				System.out.println(field.getName());
			}
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}

}
